﻿using BCEntity.MakeStaticPagingComponent.PageTemplate;
using BCEntity.MakeStaticPagingComponent.SystemServiceListing;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MakeStaticPagingComponent.PageTemplateSerialize
{
    /// <summary>
    /// 页面模板序列化
    /// </summary>
    public interface IPageTemplateSerializeService
    {
        /// <summary>
        /// 构建页面操作
        /// </summary>
        /// <param name="pageTemplateEntity">页面模板</param>
        /// <returns></returns>
        string MakePageOperation(PageTemplateEntity pageTemplateEntity);
        /// <summary>
        /// 构建分页页面操作
        /// </summary>
        /// <param name="pageTemplateEntity">页面模板</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">每页数据条数</param>
        /// <returns></returns>
        string MakePagingOperation(PageTemplateEntity pageTemplateEntity, int pageIndex, int pageSize);
        /// <summary>
        /// 构建内容页面操作
        /// </summary>
        /// <param name="pageTemplateEntity">页面模板</param>
        /// <param name="obj">内容对象</param>
        /// <returns></returns>
        string MakeContentPageOperation(PageTemplateEntity pageTemplateEntity, Object obj);
        /// <summary>
        /// 获取服务方法结果
        /// </summary>
        /// <param name="serviceMethodTag">服务方法标签</param>
        /// <param name="serviceMethodParams">服务方法参数</param>
        /// <returns></returns>
        object GetServiceMethodResult(string serviceMethodTag,string serviceMethodParams);
    }
}
